import { HttpCodeEnum } from '/@/utils/request/enum/MethodEnum';

/**
 * 参数模型
 */
export interface ParamModel {
  params?: object;
  data?: object;
}
/**
 * 请求返回值
 */
export interface Result {
  code: HttpCodeEnum;
  msg?: string;
  data?: object;
}
/**
 * http返回值
 */
export interface HttpResult {
  config: object;
  data: Result;
  header?: object;
  request?: object;
  status: number;
  statusText: string;
  headers: object;
}

export interface HttpConfig {
  callBack?: () => void;
  isHint?: boolean;
  isToken?: boolean;
}
